//该文件用于创建图像数组
//开始背景
var start_bg = new Image();
start_bg.src = "source/bg/img_bg_logo.jpg";

//LOGO
var logo = new Image();
logo.src = "source/LOGO.png";

//游戏进行中的背景
var bg = new Image();
bg.src = "source/bg/img_bg_level_"+level+".jpg";

//关卡加载背景
var levelLoading = new Image();
levelLoading.src = "source/level/levelLoading.png";
//第几关
var dj = new Image();
dj.src = "source/level/level"+level+".png";

//关卡升级
var levelU = new Image();
levelU.src = "source/level/levelUp.png";

//暂停
var pauseI = new Image();
pauseI.src = "source/bg/pause.png";

//生命和分数
var las = new Image();
las.src = "source/bg/life.png";

var all = [];
all[0] = start_bg;
all[1] = logo;
all[2] = bg;
all[3] = levelLoading;
all[4] = dj;
all[5] = levelU;
all[6] = pauseI;
all[7] = las;




//STRATING中的飞机loading图
var l = [];
l[0] = new Image();l[0].src = "source/load/load_blue1.png";
l[1] = new Image();l[1].src = "source/load/load_blue2.png";
l[2] = new Image();l[2].src = "source/load/load_blue3.png";
l[3] = new Image();l[3].src = "source/load/load_blue3.png";

l[4] = new Image();l[4].src = "source/load/load_pink1.png";
l[5] = new Image();l[5].src = "source/load/load_pink2.png";
l[6] = new Image();l[6].src = "source/load/load_pink3.png";
l[7] = new Image();l[7].src = "source/load/load_pink3.png";

l[8] = new Image();l[8].src = "source/load/load_red1.png";
l[9] = new Image();l[9].src = "source/load/load_red2.png";
l[10] = new Image();l[10].src = "source/load/load_red3.png";
l[11] = new Image();l[11].src = "source/load/load_red3.png";

l[12] = new Image();l[12].src = "source/load/load_yellow1.png";
l[13] = new Image();l[13].src = "source/load/load_yellow2.png";
l[14] = new Image();l[14].src = "source/load/load_yellow3.png";
l[15] = new Image();l[15].src = "source/load/load_yellow3.png";


var h = [];
//蓝飞机主体
h[0] = new Image();h[0].src = "source/main/main_blue1.png";
h[1] = new Image();h[1].src = "source/main/main_blue2.png";
h[2] = new Image();h[2].src = "source/main/main_blue3.png";
//蓝飞机爆炸
h[3] = new Image();h[3].src = "source/main/bom_blue1.png";
h[4] = new Image();h[4].src = "source/main/bom_blue2.png";
h[5] = new Image();h[5].src = "source/main/bom_blue3.png";
h[6] = new Image();h[6].src = "source/main/bom_blue4.png";
h[7] = new Image();h[7].src = "source/main/bom.png";

//粉飞机主体
h[8] = new Image();h[8].src = "source/main/main_pink1.png";
h[9] = new Image();h[9].src = "source/main/main_pink2.png";
h[10] = new Image();h[10].src = "source/main/main_pink3.png";
//粉飞机爆炸
h[11] = new Image();h[11].src = "source/main/bom_pink1.png";
h[12] = new Image();h[12].src = "source/main/bom_pink2.png";
h[13] = new Image();h[13].src = "source/main/bom_pink3.png";
h[13] = new Image();h[13].src = "source/main/bom_pink4.png";
h[14] = new Image();h[14].src = "source/main/bom.png";

//红飞机
h[15] = new Image();h[15].src = "source/main/main_red1.png";
h[16] = new Image();h[16].src = "source/main/main_red2.png";
h[17] = new Image();h[17].src = "source/main/main_red3.png";

h[18] = new Image();h[18].src = "source/main/bom_red1.png";
h[19] = new Image();h[19].src = "source/main/bom_red2.png";
h[20] = new Image();h[20].src = "source/main/bom_red3.png";
h[20] = new Image();h[20].src = "source/main/bom_red4.png";
h[21] = new Image();h[21].src = "source/main/bom.png";

//黄飞机
h[22] = new Image();h[22].src = "source/main/main_yellow1.png";
h[23] = new Image();h[23].src = "source/main/main_yellow2.png";
h[24] = new Image();h[24].src = "source/main/main_yellow3.png";

h[25] = new Image();h[25].src = "source/main/bom_yellow1.png";
h[26] = new Image();h[26].src = "source/main/bom_yellow2.png";
h[27] = new Image();h[27].src = "source/main/bom_yellow3.png";
h[27] = new Image();h[27].src = "source/main/bom_yellow4.png";
h[28] = new Image();h[28].src = "source/main/bom.png";


//子弹
var b = [];
b[0] = new Image();b[0].src = "source/bullet/bullet1.png";
b[1] = new Image();b[1].src = "source/bullet/bullet2.png";
b[2] = new Image();b[2].src = "source/bullet/bullet3.png";
b[3] = new Image();b[3].src = "source/bullet/bullet4.png";
b[4] = new Image();b[4].src = "source/bullet/bullet5.png";
b[5] = new Image();b[5].src = "source/bullet/bullet6.png";


//敌机
var e = [];
//灰色 大飞机
e[0] = new Image();e[0].src = "source/enemy/level1_bom1_0.png";
e[1] = new Image();e[1].src = "source/enemy/level1_bom1_1.png";
e[2] = new Image();e[2].src = "source/enemy/level1_bom1_2.png";
e[3] = new Image();e[3].src = "source/enemy/level1_bom1_3.png";
e[4] = new Image();e[4].src = "source/enemy/level1_bom1_4.png";
//中型红白飞机
e[5] = new Image();e[5].src = "source/enemy/level1_bom2_0.png";
e[6] = new Image();e[6].src = "source/enemy/level1_bom2_1.png";
//绿色飞机
e[7] = new Image();e[7].src = "source/enemy/level1_bom3_0.png";
e[8] = new Image();e[8].src = "source/enemy/level1_bom3_1.png";
//红色大飞机
e[9] = new Image();e[9].src = "source/enemy/level1_bom4_0.png";
e[10] = new Image();e[10].src = "source/enemy/level1_bom4_1.png";

//等级加载数组
var ll = [];
ll[0] = new Image();ll[0].src = "source/level/levelLoading (1).png";
ll[1] = new Image();ll[1].src = "source/level/levelLoading (2).png";
ll[2] = new Image();ll[2].src = "source/level/levelLoading (3).png";
ll[3] = new Image();ll[3].src = "source/level/levelLoading (4).png";
ll[4] = new Image();ll[4].src = "source/level/levelLoading (5).png";
ll[5] = new Image();ll[5].src = "source/level/levelLoading (6).png";
ll[6] = new Image();ll[6].src = "source/level/levelLoading (7).png";
ll[7] = new Image();ll[7].src = "source/level/levelLoading (8).png";
ll[8] = new Image();ll[8].src = "source/level/levelLoading (9).png";
ll[9] = new Image();ll[9].src = "source/level/levelLoading (10).png";
ll[10] = new Image();ll[10].src = "source/level/levelLoading (11).png";

//两片云吧，你开心就好
var c = [];
c[0] = new Image();c[0].src = "source/bg/img_cloud_1.png";
c[1] = new Image();c[1].src = "source/bg/img_cloud_2.png";

//加成道具爽歪歪
var p = [];
p[0] = new Image();p[0].src = "source/props/props_bullet.png";
p[1] = new Image();p[1].src = "source/props/props_life.png";
p[2] = new Image();p[2].src = "source/props/props_double.png";
p[3] = new Image();p[3].src = "source/props/props_300.png";
p[4] = new Image();p[4].src = "source/props/props_kill.png";






